import service from '@/utils/request';
const servletMap = [
	// ['/user/cu/user/detail','detail',get],
	['/user/sys/group/config','config','get'],
	['/user/cu/user/base-update','baseUpdate','put'],

];
let obj = {};
for (let i in servletMap) {
	obj[servletMap[i][1]] = function() {
		return service[servletMap[i][2]](servletMap[i][0],...arguments)
	};
}

export default {
	...obj,

	detail(id) {
		return service.get('/user/cu/user/detail/' + id);
	},
	getHelp(type){
		return service.get('/user/cu/user/help/'+type);
	},


	getUserStudyData:(categoryId)=>service.get('/user/cu/user/current-records/'+categoryId)
};
